import { request } from '@/utils/request'
import type { DiseaseListParams } from '@/types/disease'

// 获取疾病列表
export const getDiseaseList = (params: DiseaseListParams) => {
  return request.get('/disease/list', { params })
}

// 获取疾病详情
export const getDiseaseDetail = (id: string | number) => {
  return request.get(`/disease/${id}`)
}

// 搜索疾病
export const searchDisease = (keyword: string) => {
  return request.get('/disease/search', { params: { keyword } })
}
